<!--<?php
print <<<EOT
-->

<script src="../css/edit.js"></script>

<!--Content Start-->
<table width="95%" border="0" align="center">
  <tr> 
    <td>&nbsp;</td>
  </tr>
  <tr> 
    <td>
      <table width="100%" border="0" align="left" cellpadding="3" cellspacing="3">
        <tr> 
          <td>
            
            <span id="msg_area" class="js_msg">$alert_message</span>
          
            <table border="0" cellspacing="1" cellpadding="1">
              <tr>
                <td width="100%">
                  <form name="form2" method="post">
                  <table border="0" cellspacing="1" cellpadding="1">
                    <tr>
                      <td><input type="text" class="text" name="start" size="11" value="$start"> -</td>
                      <td><input type="text" class="text" name="end" size="11" value="$end">&nbsp;&nbsp;</td>
                      <td><input type="text" class="text" name="key" size="20" value="$key" onFocus="form2.key.value='';return false"><input type="hidden" name="action" value="search"></td>
			          <td><input name="image" type="image" src="../images/admin/bt_search.gif" onclick="form2.submit;"></td>
			          <td><input name="image" type="image" src="../images/admin/bt_listall.gif" onClick="location.href='c_order_list.php';return false"></td>
                    </tr>
                  </table>
                  </form>
                </td>
                <td align="right">
			    </td>
              </tr>
            </table>
            
            <div align=right><a href="export_order.php?action=export&start_date=$unix_start&end_date=$unix_end&user=$user" target="_blank"><img src="../images/admin/excel.gif" border=0><a></div><br>
            <!--form name="form3" method="get" action="export_order.php" target="_blank">
            <table border="0" cellspacing="1" cellpadding="1" width="100%">
              <tr align="right">
                <td align="right">
                      <input type="hidden" name="action" value="export">
                      <input type="hidden" name="start_date" value="$unix_start">
                      <input type="hidden" name="end_date" value="$unix_end">
                      <input type="hidden" name="user" value="$user">
			          <input name="image" type="image" src="../images/admin/excel.gif" onclick="form3.submit;">
                </td>
              </tr>
            </table>
            </form-->
            
            <span id="edit_area"></span>
            
            $page_show

            <table width="100%" border="0" cellspacing="1" cellpadding="1" class="tb">
              <tr class="tbheader"> 
		        <td width="8%">OrderId</td>
		        <td width="20%">Date</td>
			    <td width="15%">User(Customer)</td>
			    <td width="10%">Total Count</td>
			    <td width="10%">Total Price</td>
			    <td width="10%">View</td>
              </tr>

<!--
EOT;
for($i=0; $i<count($out_ary); $i++){
	$date = date('Y-m-d', $out_ary[$i]['date']);
print <<<EOT
-->
              
              <tr class="tbcontent1"> 
		        <td>{$out_ary[$i]['id']}</td>
		        <td>{$date}</td>
                <td>{$user_info_ary[$out_ary[$i]['user_id']]['username']}({$user_info_ary[$out_ary[$i]['user_id']]['firstname']})</td>
                <td>{$out_ary[$i]['totalcount']}</td>
                <td>{$out_ary[$i]['totalcost']} {$user_info_ary[$out_ary[$i]['user_id']]['money_type']}</td>                                             
			    <td align=center bgcolor="ECECEC">
			    <a href="javascript:getAdminEdit('edit_area', '15', '{$out_ary[$i]['id']}')"><img src="../images/admin/bt_enquiry.gif" border="0" alt="Edit"></a>
			    
			    <a href="jansenfurniture_order.php?id={$out_ary[$i]['id']}" target="_blank"><img src="../images/admin/add_stock.gif" border="0" alt="export"></a>
			    
			    </td>
              </tr>

<!--
EOT;
} print <<<EOT
--> 

                            
            </table>

            $page_show

          </td>
        </tr>
      </table>
      
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p></td>
  </tr>
</table>
<!--Content End-->

<!--
EOT;
?>-->